How Does Python S `itertools Groupby ` Function Group Data Python

How Does Python S `itertools Groupby ` Function Group Data Python